#ifndef PARTICLESYSTEMCOMPWIDGET_H
#define PARTICLESYSTEMCOMPWIDGET_H

#include <QWidget>
#include <QtGui>
#include "aed_particlesystemcomp.h"

class ParticleSystemCompWidget : public QWidget
{
    Q_OBJECT

    AED_ParticleSystemComp *m_comp;
    QLineEdit* particle;
    QGroupBox* group;
    QCheckBox* fading;
    QCheckBox* animate;
    QCheckBox* rotate;
    QCheckBox* autostart;
    QCheckBox* autokill;
    QCheckBox* loop;
    QSpinBox* totalparticles;
    QSpinBox* lifetime;
    QSpinBox* particle_lifetime;
    QSpinBox* randomness;
    QSpinBox* interval;
    QDoubleSpinBox* particlevel;
    QDoubleSpinBox* particlesize;
    QDoubleSpinBox* scaling;
    QDoubleSpinBox* velint;

public:
    explicit ParticleSystemCompWidget(AED_ParticleSystemComp *comp, QWidget *parent = 0);
    void setComp(AED_ParticleSystemComp *comp);
signals:

public slots:

    void SetEnabled(bool enabled){m_comp->SetEnabled(enabled);}
    void SetParticle(const QString &particle){m_comp->SetParticle(particle);}
    void SetTotalParticles(int particles){m_comp->SetTotalParticles(particles);}
    void SetLifeTime(int lifetime){m_comp->SetLifeTime(lifetime);}
    void SetParticleVelocity(double vel){m_comp->SetParticleVelocity(vel);}
    void SetParticleLifetime(int lifetime){m_comp->SetParticleLifeTime(lifetime);}
    void SetParticleSize(double size){m_comp->SetParticleSize(size);}
    void SetRandomness(int randomness){m_comp->SetRandomness(randomness);}
    void SetFading(bool fading){m_comp->SetFading(fading);}
    void SetAnimate(bool animate){m_comp->SetAnimate(animate);}
    void SetScaling(double scaling){m_comp->SetScaling(scaling);}
    void SetParticleRotation(bool rotate){m_comp->SetParticleRotation(rotate);}
    void SetVelocityInterpolation(double vel){m_comp->SetVelocityInterpolation(vel);}
    void SetAutoStart(bool autostart){m_comp->SetAutoStart(autostart);}
    void SetAutoKill(bool autokill){m_comp->SetAutoKill(autokill);}
    void SetLoop(bool loop){m_comp->SetLoop(loop);}
    void SetInterval(int interval){m_comp->SetInterval(interval);}

};

#endif // PARTICLESYSTEMCOMPWIDGET_H
